<?php

namespace App\Http\Controllers\Wx;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Services\RankService;

class RankController extends Controller
{

    //
    public function index(Request $request)
    {
        $season = (int)$request->query('season', env('KILL_SEASON'));

        return app()
            ->get(RankService::class)
            ->index($season);
    }
}
